package org.zsqx.bean;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import cDao.annotation.FieldTypeAnnotation;

/**
 * Town entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "TOWN", schema = "dbo", catalog = "BN4PS9Z220010012")
public class Town implements java.io.Serializable {

	// Fields
	@FieldTypeAnnotation(colum="T_NUM",fieldType=Integer.class,isKey=true)
	private Integer TNum;
	private String TName;
	private String TDes;

	// Constructors

	/** default constructor */
	public Town() {
	}

	/** minimal constructor */
	public Town(Integer TNum, String TName) {
		this.TNum = TNum;
		this.TName = TName;
	}

	/** full constructor */
	public Town(Integer TNum, String TName, String TDes) {
		this.TNum = TNum;
		this.TName = TName;
		this.TDes = TDes;
	}

	// Property accessors
	@Id
	@Column(name = "T_NUM", unique = true, nullable = false)
	public Integer getTNum() {
		return this.TNum;
	}

	public void setTNum(Integer TNum) {
		this.TNum = TNum;
	}

	@Column(name = "T_NAME", nullable = false, length = 50)
	public String getTName() {
		return this.TName;
	}

	public void setTName(String TName) {
		this.TName = TName;
	}

	@Column(name = "T_DES", length = 50)
	public String getTDes() {
		return this.TDes;
	}

	public void setTDes(String TDes) {
		this.TDes = TDes;
	}

}